<?php defined('MYLITS') ? '' : exit('No direct script access allowed'); ?>
<div class="row">
    <div class="col-sm-6">
        <table>
            <tr>
                <th><?= Mylits_Language::getText('number'); ?></th>
                <th><?= Mylits_Language::getText('component'); ?></th>
                <th><?= Mylits_Language::getText('permission'); ?></th>
                <th><?= Mylits_Language::getText('action'); ?></th>
            </tr>
            <?php if (isset($components) && !empty($components)): ?>
                <?php $no = 1; ?>
                <?php foreach ($components as $component): ?>
                    <tr>
                        <td><?= $no ?></td>
                        <td><?= $component ?></td>
                        <td></td>
                        <td><a class="glyphicon glyphicon-user popup" href="<?=$urlEdit . $component?>"></a></td>
                    </tr>
                    <?php $no++ ?>
                <?php endforeach; ?>
            <?php else: ?>
                <tr>
                    <td colspan="4"><?= Mylits_Language::getText('no_data') ?></td>
                </tr>
            <?php endif; ?>
        </table>
    </div>
    <div class="col-sm-6">

    </div>
</div>